
#ifndef __FLASH_H__
#define __FLASH_H__

class FLASHI
{
private:
public:    
    uint32 NeedStart;
    uint64 StartTime;
    
    FLASHI(void);
    void ReadBootMess(void *buf, uint32 len);
    void WriteBootMess(void *buf, uint32 len);
    void ReadApp(uint32 add, void *buf, uint32 len);
    void WriteApp(uint32 add, void *buf, uint32 len);
    uint32 GetAppMod32(uint32 len);
    void JumpToInapp(void);
    void Restart(void);
};
extern FLASHI Flashi;

#endif
